package com.medical.admin.sys.common.dto;

import com.medical.admin.sys.common.validate.IsPhone;
import lombok.Data;

import javax.validation.constraints.*;
import java.util.Date;

/*
 * @Date : 2024/4/26 16:30
 * @Created by Lang
 * @ProjectName : medical-appointment-registration
 */
@Data
public class AdminDto {
    private Long marAdminId;
    @NotBlank(message = "用户名不能为空且长度必须大于0")
    private String marAdminUsername;
    @NotBlank(message = "密码不能为空且长度必须大于0")
    private String marAdminPassword;
    @NotBlank(message = "账号不能为空且长度必须大于0")
    private String marAdminAccount;
    @NotNull(message = "角色不能为空")
    private Integer marRoleId;
    @IsPhone(message = "手机号码格式错误")
    private String marAdminPhone;
    @NotNull
    @Min(0)
    @Max(1)
    private Integer marAdminStatus;
    private Date marAdminCreateTime;
}
